﻿using System;
using Microsoft.Win32;
using System.IO;

namespace AuroraLightsFX
{
    public static class WallpaperMonitor
    {

        
        public static void Start()
        {
            String filename = String.Empty;

            try
            {
                FileInfo fInfo = new FileInfo(Registry.CurrentUser.OpenSubKey(@"Control Panel\Desktop").GetValue("Wallpaper").ToString());
                FileSystemWatcher watcher = new System.IO.FileSystemWatcher(fInfo.Directory.FullName, fInfo.Name);
                watcher.Changed += new FileSystemEventHandler(WallpaperChangeNotify);

            }
            catch
            {

            }
            
        }


        static void WallpaperChangeNotify(object sender, FileSystemEventArgs e)
        {
            
        }

    }
}
